<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <!-- v-text和v-html -->
    <div id="app">
        <p v-text="text1"></p>
        <p v-html="text2"></p>
        <ul>
            <li v-for="(item,index) in students" :key="index">
                {{item.name}}---{{item.age}}
            </li>
        </ul>
        <ul>
            <li v-for="(value,key,index) in person" :key="index">
                {{value}}---{{key}}---{{index}}
            </li>
        </ul>
        <div v-if="person.age>18">成年人</div>
        <div v-else>未成人</div>
        <div v-show="isshow">111</div>
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                text1:'<a href="#">www.baidu.com</a>',
                text2:'<a href="#">www.baidu.com</a>',
                students:[
                   {name:'zs',age:21}, 
                   {name:'ls',age:22},
                   {name:'ww',age:24} 
                 ],
                 person:{
                     name:'qq',
                     sex:'male',
                     age:11
                 },
                 isshow:false
            }
        })
    </script>
</body>
</html>